import LayoutBase from '@/page/layout/base'
import SliderAutomation from '@/page/layout/slider/automation'

export default [
  {
    path: '/automation',
    component: LayoutBase,
    children: [
      {
        path: '/pro',
        component: SliderAutomation,
        children: [
          {
            path: '/automation/empty',
            name: 'empty',
            component: () => import(/* webpackChunkName: "empty" */'@/views/automation/empty'),
            meta: {title: '营销自动化'}
          },
          {
            path: '/automation/template/email',
            name: 'email',
            component: () => import(/* webpackChunkName: "email" */'@/views/automation/template/email'),
            meta: {title: '营销自动化-邮件模板'}
          },
          {
            path: '/automation/template/email/add',
            name: 'addMail',
            component: () => import(/* webpackChunkName: "mailDetail" */'@/views/automation/template/email/mailDetail'),
            meta: {title: '营销自动化-邮件模板添加'}
          },
          {
            path: '/automation/template/email/edit/:id',
            name: 'edit',
            component: () => import(/* webpackChunkName: "edit" */'@/views/automation/template/email/mailDetail'),
            meta: {title: '营销自动化-邮件模板编辑'}
          },
          {
            path: '/automation/template/xml',
            name: 'xml',
            component: () => import(/* webpackChunkName: "xml" */'@/views/automation/template/xml/index'),
            meta: {title: '营销自动化'}
          },
          {
            path: '/automation/template/xml/add',
            name: 'addXml',
            component: () => import(/* webpackChunkName: "addXml" */'@/views/automation/template/xml/xmlDetail'),
            meta: {title: '营销自动化-新增社交模板'}
          },
          {
            path: '/automation/template/xml/edit/:id',
            name: 'edit',
            component: () => import(/* webpackChunkName: "edit" */'@/views/automation/template/xml/xmlDetail'),
            meta: {title: '营销自动化-编辑社交模板'}
          },
          //2.邮件自动化
          {
            path: '/automation/mailAutomation',
            name: 'mailAutomation',
            component: () => import(/* webpackChunkName: "mailAutomation" */'@/views/automation/mailAutomation'),
            meta: {title: '营销自动化'}
          },
          {
            path: '/automation/mailAutomation/add',
            name: 'mailAutomation',
            component: () => import(/* webpackChunkName: "mailAutomation" */'@/views/automation/mailAutomation/detail'),
            meta: {title: '营销自动化'}
          },
          {
            path: '/automation/mailAutomation/edit/:id',
            name: 'mailAutomation',
            component: () => import(/* webpackChunkName: "mailAutomation" */'@/views/automation/mailAutomation/detail'),
            meta: {title: '营销自动化'}
          },
          //3.社交自动化
          {
            path: '/automation/socialAutomation',
            name: 'socialAutomation',
            component: () => import(/* webpackChunkName: "socialAutomation" */'@/views/automation/socialAutomation'),
            meta: {title: '营销自动化'}
          },
          //4.营销统计
          {
            path: '/automation/marketStatic',
            name: 'marketStatic',
            component: () => import(/* webpackChunkName: "marketStatic" */'@/views/automation/marketStatic'),
            meta: {title: '营销自动化'}
          },
          {
            path: '/automation/marketStatic/emailDetail/:id',
            name: 'marketStatic',
            component: () => import(/* webpackChunkName: "marketStatic" */'@/views/automation/marketStatic/emailDetail'),
            meta: {title: '营销自动化'}
          },
          {
            path: '/automation/marketStatic/socialDetail/:id',
            name: 'socialDetail',
            component: () => import(/* webpackChunkName: "marketStatic" */'@/views/automation/marketStatic/socialDetail'),
            meta: {title: '营销自动化'}
          },
          //5.社交平台绑定
          {
            path: '/system/platformBind',
            name: 'platformBind',
            component: () => import(/* webpackChunkName: "platformBind" */'@/views/automation/socialAutomation/platformBind'),
            meta: {title: '营销自动化'}
          },
        ]
      }
    ]
  },
  {
    path: '/automation/template/mailReview/:id',
    name: 'mailReview',
    component: () => import(/* webpackChunkName: "mailReview" */'@/views/automation/template/email/mailReview'),
    meta: {title: '邮件模板-预览'}
  },
  {
    path: '/automation/template/xmlReview/:id',
    name: 'mailReview',
    component: () => import(/* webpackChunkName: "mailReview" */'@/views/automation/template/xml/xmlReview'),
    meta: {title: '图文模板-预览'}
  },
  {
    path: '/automation/socialReview/:id',
    name: 'mailReview',
    component: () => import(/* webpackChunkName: "mailReview" */'@/views/automation/socialAutomation/socialReview'),
    meta: {title: '社交自动化-预览'}
  }
]
